Fixed ThemeProp mapping - SegmentedButtons.tsx #4542
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix: Correct
ThemePropimport path inSegmentedButtons.tsxThis pull request corrects the import path for
ThemePropinSegmentedButtons.tsx. The original import path was incorrect, leading to a broken build or runtime errors.Motivation:
The current import
import type { ThemeProp } from 'src/types';is relative to the component's location and does not correctly resolve theThemeProptype. This change updates the import to the correct relative path:import type { ThemeProp } from '../../../src/types';Related Issue:
(If applicable, link to the related issue here. Otherwise, leave this section blank or describe the problem.)
Test Plan:
ThemeProp.ThemeProptype.This commit resolves this issue by fixing the import statement. The change involves a single addition and deletion within
SegmentedButtons.tsx. The pull request is mergeable and passes lint, TypeScript, and tests.